package com.mrbird.demo.controller;

import com.mrbird.demo.annotation.LogJ;
import com.mrbird.demo.config.BlogProperties;
import com.mrbird.demo.config.TestConfigBean;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jbx
 * @package_name com.mrbird.demo.controller
 * @create_date 2021/2/20 16:09
 */
@RestController
public class TestController {
    @LogJ("执行方法一")
    @GetMapping("/one")
    public void methodOne(String name) { }

    @LogJ("执行方法二")
    @GetMapping("/two")
    public void methodTwo() throws InterruptedException {
        Thread.sleep(2000);
    }

    @LogJ("执行方法三")
    @GetMapping("/three")
    public void methodThree(String name, String age) { }
}
